cmake_minimum_required (VERSION 2.8)

include_directories(${CMAKE_SOURCE_DIR}/Command/include) 
include_directories(${CMAKE_SOURCE_DIR}/Setting/include) 
include_directories(${CMAKE_SOURCE_DIR}/ArduinoController/include) 
include_directories(${CMAKE_SOURCE_DIR}/StringUtil/include) 
include_directories(${CMAKE_SOURCE_DIR}/Sensors/include) 
include_directories(${CMAKE_SOURCE_DIR}/RaspiCamera/include) 
include_directories(${CMAKE_SOURCE_DIR}/Vision/include) 
include_directories(${CMAKE_SOURCE_DIR}/Logging/include) 
include_directories(${CMAKE_SOURCE_DIR}/RaspiCamCV/include)
include_directories(${CMAKE_SOURCE_DIR}/CommandScript/include)

include_directories(/opt/local/include)

file (GLOB ALL_SOURCE src/*.cpp)
add_library (Command ${ALL_SOURCE})

target_link_libraries(Command Vision)

